import { observable, action } from 'mobx-miniprogram'
const store = observable({
  token: '',
  get tokenFormat() {
    return 'Breare ' + this.token
  },
  setToken: action(function (payload) {
    console.log(payload);
    this.token = payload
  })
})

export default store